/*eslint no-console: ["error", { allow: ["warn", "error", "log"] }] */

const {request} = require('./alimama')
//const request = require('request')

/*
request.get('http://pub.alimama.com/common/code/getAuctionCode.json?auctionid=547847755137&adzoneid=22382726&siteid=4810320&scenes=1&t=1495374691581&_tb_token_=9X06eUOGXeq&pvid=10_58.48.79.106_599_1495374613337', (err, resp, body) => {
    console.log(resp.req.path)
})
*/

request('http://pub.alimama.com/common/code/getAuctionCode.json?auctionid=547847755137&adzoneid=22382726&siteid=4810320&scenes=1&t=1495374691581&_tb_token_=9X06eUOGXeq&pvid=10_58.48.79.106_599_1495374613337').then(resp => {
    console.log(resp)
}).catch(error => {
    console.log(error)
})
